-- GENERATED SPELL FOR [Kregg Keelhaul] --


function spell0_8203(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8203', 610, 1)
end

function spell1_8203(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8203', 561, 1)
end

function Sorts_8203(pUnit, Event)
local choix_sorts_8203 = math.random(0, 1)
if choix_sorts_8203 == 0 then
pUnit:RegisterEvent('spell0_8203', 1, 1)
end
if choix_sorts_8203 == 1 then
pUnit:RegisterEvent('spell1_8203', 1, 1)
end
end

function mob8203_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8203', math.random(1500, 3000), 1)
end

function mob8203_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8203_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8203_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8203, 1, 'mob8203_Action')
RegisterUnitEvent(8203, 2, 'mob8203_Leave')
RegisterUnitEvent(8203, 3, 'mob8203_Kill')
RegisterUnitEvent(8203, 4, 'mob8203_Die')
